<?php
/**
 *
 * User: 罗艳忠
 * Email:luozong05@126.com
 * DateTime: 2017/5/12 16:58
 */

namespace App\Services;
use App\Models\WechatQrcode;

class QrcodeService
{
    public $wechatQrcodeModel;
    public function __construct(WechatQrcode $wechatQrcode)
    {
        $this->wechatQrcodeModel = $wechatQrcode;
    }

    public function index(){

    }

    public function create($data){
        return $this->wechatQrcodeModel->create($data);
    }

    public function update($data){
        return $this->wechatQrcodeModel->find($data["id"])->update($data);
    }

}